import axios from "../../utils/request";

function login(body) {
  // 返回值是Promise;
  return axios({
    url: "/apivue/shop/shop/login",
    method: "post",
    data: body,
  });
}

function out(data) {
  // 返回值是Promise;
  return axios({
    url: "/apivue/shop/shop/logout",
    method: "get",
    params: data,
  });
}

export default {
  login,
  out,
};
